package ch06.decorator;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/8/29 14:22
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/8/29 14:22
 */
public class Client {
    public static void main(String[] args) {
        Person xc = new Person("fesine");
        System.out.println("第一种装扮");
        Sneakers sk = new Sneakers();
        BigThrouser bt = new BigThrouser();
        TShirts t = new TShirts();
        sk.decorator(xc);
        bt.decorator(sk);
        t.decorator(bt);
        t.show();

        System.out.println("第二种装扮");
        LeatherShoes px = new LeatherShoes();
        Tie tie = new Tie();
        Suit suit = new Suit();
        px.decorator(xc);
        tie.decorator(px);
        suit.decorator(tie);
        suit.show();
    }
}
